package com.indexingsystem.boss.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.indexingsystem.boss.entity.DhMagazinesMl;

public interface DhMagazinesMlMapper {
    int deleteByPrimaryKey(String mlId);

    int insert(DhMagazinesMl record);

    int insertSelective(DhMagazinesMl record);

    DhMagazinesMl selectByPrimaryKey(String mlId);

    int updateByPrimaryKeySelective(DhMagazinesMl record);

    int updateByPrimaryKey(DhMagazinesMl record);
    
    /**
     * 通过资源id获取期刊资源目录列表.
     * 
     * @param resId
     * @return
     */
    List<DhMagazinesMl> getDhMagazinesMlListByResId(String resId);
    
    /**
     * 批量删除期刊文章目录关系.
     * @param list
     * @return
     */
    int deleteBatchMagazinesMlByResIdList(@Param("list") List<String> list);
    
    
    /**
     * 通过期刊id和资源名称查询期刊-文章目录关系列表.
     * @param dhMagazinesMl
     * @return
     */
    List<DhMagazinesMl> getDhMagazinesMlListByResIdOrResName(DhMagazinesMl dhMagazinesMl);
    
    
    /**
     * 通过资源id获取期刊、文章资源目录关系列表.
     * @param list
     * @return
     */
    List<DhMagazinesMl> getDhMagazinesMlListByResIdList(@Param("list") List<String> list);
    
    /**
     * 批量解除期刊、文章资源目录关系.
     * @param list
     * @return
     */
    int deleteBatchMagazinesMlByMlidList(@Param("list") List<String> list);
}